/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.crab.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 兑换券与商品关系Entity
 * @author huanghaiming
 * @version 2017-07-19
 */
public class CouponProduct extends DataEntity<CouponProduct> {
	
	private static final long serialVersionUID = 1L;
	private String couponId;		// 兑换券id
	private String productId;		// 商品id
	
	public CouponProduct() {
		super();
	}

	public CouponProduct(String id){
		super(id);
	}

	@Length(min=1, max=32, message="兑换券id长度必须介于 1 和 32 之间")
	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}
	
	@Length(min=1, max=255, message="商品id长度必须介于 1 和 255 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
}